//
//  Constant.swift
//  TeaShop
//
//  Created by 刘泽 on 2018/1/14.
//  Copyright © 2018年 刘泽. All rights reserved.
//


public let SCREEN_WIDTH = min(UIScreen.main.bounds.width, UIScreen.main.bounds.height)
public let SCREEN_HEIGHT = max(UIScreen.main.bounds.width, UIScreen.main.bounds.height)
public let STATUES_HEIGHT = UIApplication.shared.statusBarFrame.height
public let BOTTOM_SAFE_HEIGHT : CGFloat = STATUES_HEIGHT > 20 ? 34.0 : 0.0
public let VIEW_HEIGHT = isIphoneX ? SCREEN_HEIGHT - 88 : SCREEN_HEIGHT - 64
public let VIEW_WIDTH = UIScreen.main.bounds.width
public let isIphone4 : Bool = SCREEN_WIDTH * SCREEN_HEIGHT == 320 * 480
public let isIphone5 : Bool = SCREEN_WIDTH * SCREEN_HEIGHT == 320 * 568
public let isIphone6 : Bool = SCREEN_WIDTH * SCREEN_HEIGHT == 375 * 667
public let isIphonePlus : Bool = SCREEN_WIDTH * SCREEN_HEIGHT == 414 * 736
public let isIphoneX : Bool = SCREEN_WIDTH * SCREEN_HEIGHT == 375 * 812
public let isIphoneXMax : Bool = SCREEN_WIDTH * SCREEN_HEIGHT == 417 * 896

public typealias JustBlock = () -> Void
public typealias IntBlock = (Int) -> Void
public typealias StringBlock = (String) -> Void
public typealias BoolBlock = (Bool) -> Void



